{template header}
<script language="javascript" type="text/javascript">
J(function(){
	bopuruiObj.product = {
		init: function(){		
			var cookName = 'selectProduct_serch';
			bopuruiObj.command.cookName = cookName;
			var selectProduct = getcookie(cookName)!='' ? getcookie(cookName) : '';
			J('#intoShopping').click(function(){
				<!--{if !$userInfo[userId]}-->
				ajaxmenu("/product-detail-{$categoryId}.htm?verify=islogin&tourl={$_SERVER['REQUEST_URI']}", 0);
				<!--{else}-->
				if(J('input[name=productId[]]:checked').length==0){
					alert('请选择产品！');
				}else{
					var productId = '';
					//J('input[name=productId[]]:checked').each(function(){productId = productId + J(this).val() + '-';});
					productId = productId.replace(';','');
					productId = getcookie(cookName).replace(/\,/g,'-')
					if(productId!='') {
						var prIdArr = productId.split('-');
						var productAmountValue = '';
						for(v in prIdArr) {
							productAmountValue += J('#amount_'+prIdArr[v]).val() + '-';
						}
					}
					
					setcookie(cookName, '');
					ajaxmenu('/product-detail-{$categoryId}.htm?intoShopping=add&pid='+productId+'&pvalue='+productAmountValue, 0, 0, 0, function(s){J('#cartCount').html(J('#ShopcartCount').find('b').eq(0).html())});
				}
				<!--{/if}-->
			});
			
			J('#ImmediatelyShopping').click(function(){
				<!--{if !$userInfo[userId]}-->
				ajaxmenu("/product-detail-{$categoryId}.htm?verify=islogin&tourl={$_SERVER['REQUEST_URI']}", 0);
				<!--{else}-->
				if(J('input[name=productId[]]:checked').length==0){
					alert('请选择产品！');
				}else{
					var productId = '';
					//J('input[name=productId[]]:checked').each(function(){productId = productId + J(this).val() + '-';});
					productId = getcookie(cookName).replace(/\,/g,'-')
					if(productId!='') {
						productId = productId.replace(';','');
						var prIdArr = productId.split('-');
						var productAmountValue = '';
						for(v in prIdArr) {
							productAmountValue += J('#amount_'+prIdArr[v]).val() + '-';
						}
					}
					setcookie(cookName, '');
					location.href='/product-detail-{$categoryId}.htm?intoShopping=add&action=now&pid='+productId+'&pvalue='+productAmountValue;
				}
				<!--{/if}-->
			});
			
			J('#selectAll').click(function(){
				if(J(this).attr('checked')==true){
					J('input[name=productId[]]').attr('checked', true)
				}else{
					J('input[name=productId[]]').attr('checked', false)
				}
			});
			J('.pro_top_bg a').filter(function(){return J.trim(J(this).text()) == '{$letter}'}).css({'font-weight':'bold','color':'blue'});
			bopuruiObj.command.mtabletr();
			bopuruiObj.command.selectBoxAll();
			
			if(selectProduct!=''){
				J('input[Tags=mark]').each( function(){
					if(selectProduct.indexOf(','+J(this).val()+',')>-1){
						J(this).attr('checked', true);
						jQuery(this).parent().parent().removeClass('cur');
						jQuery(this).parent().parent().mousemove(function(){jQuery(this).removeClass('cur');});
						jQuery(this).parent().parent().addClass('table1a');
					}
				});
			}
		}	
	}
	bopuruiObj.product.init();
});
</script>
<div class="top_1"></div>
<div class="top_2">
	  <div class="con_left">
		  {template userlogin}		  
		  {template product_left}			
	  </div>
        
  <div class="con_box_left">       

         <div class="pro_top_bg">
      <ul>
		<li><a href="product-serchdetail.htm?letter=A">A</a></li>
        <li class="xian"></li>
		<li><a href="product-serchdetail.htm?letter=B">B</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=C">C</a></li>
        <li class="xian"></li>
		<li><a href="product-serchdetail.htm?letter=D">D</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=E">E</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=F">F</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=G">G</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=H">H</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=I">I</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=J">J</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=K">K</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=L">L</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=M">M</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=N">N</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=O">O</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=P">P</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=Q">Q</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=R">R</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=S">S</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=T">T</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=U">U</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=V">V</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=W">W</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=X">X</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=Y">Y</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=Z">Z</a></li>
      </ul>
    </div>
      <form id="form1" name="form1" method="post" action="">
      <table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:5px; font-size:14px" class="table1">
		<tbody>
          <tr><th width="1%">
            <td width="7%" height="30" align="center" bgcolor="#EAEAEA"><label>全选<input type="checkbox" id="selectAll" value="all" /></label></td>
            <td width="1%" align="center" bgcolor="#EAEAEA"><img src="images/darkgreen/l_013.gif" width="2" height="20" /></td>
            <td width="11%" align="center" bgcolor="#EAEAEA"><strong>订货号</strong></td>
            <td width="1%" align="center" bgcolor="#EAEAEA"><img src="images/darkgreen/l_013.gif" width="2" height="20" /></td>
            <td width="17%" align="center" bgcolor="#EAEAEA"><strong>产品说明</strong></td>
            <td width="1%" align="center" bgcolor="#EAEAEA"><img src="images/darkgreen/l_013.gif" width="2" height="20" /></td>
            <td width="15%" align="center" bgcolor="#EAEAEA"><strong>产品分类</strong></td>
            <td width="0%" align="center" bgcolor="#EAEAEA"><img src="images/darkgreen/l_013.gif" width="2" height="20" /></td>
            <td width="11%" align="center" bgcolor="#EAEAEA"><strong>存货类型</strong></td>
            <td width="0%" align="center" bgcolor="#EAEAEA"><img src="images/darkgreen/l_013.gif" width="2" height="20" /></td>
            <td width="12%" align="center" bgcolor="#EAEAEA"><strong>市场价</strong></td>
			<td width="1%" align="center" bgcolor="#EAEAEA"><img src="images/darkgreen/l_013.gif" width="2" height="20" /></td>
            <td width="11%" align="center" bgcolor="#EAEAEA"><strong>会员价</strong></td>
			<td width="1%" align="center" bgcolor="#EAEAEA"><img src="images/darkgreen/l_013.gif" width="2" height="20" /></td>
            <td width="11%" align="center" bgcolor="#EAEAEA"><strong>数量</strong></td>
            <td width="1%"></th>
		   <!--{loop $productArr $key $list}-->
			<tr id="tr_$list[productId]">
				<td height="28" colspan="2" align="center" style="border-bottom:1px dashed #999999"><input type="checkbox" name="productId[]" Tags="mark" value="{$list[productId]}" /></td>
				<td align="center" style="border-bottom:1px dashed #999999">&nbsp;</td>
				<td style="border-bottom:1px dashed #999999; padding-left:10px;"><font class="ari" >{$list[productNo]}</font></td>
				<td align="center" style="border-bottom:1px dashed #999999; line-height:40px;" >&nbsp;</td>
				<td style="border-bottom:1px dashed #999999;  padding-left:10px;" ><font class="ari" >{$list[content]}</font></td>
				<td align="center" style="border-bottom:1px dashed #999999">&nbsp;</td>
				<td align="center" style="border-bottom:1px dashed #999999">{$list[categoryName]}</td>
				<td align="center" style="border-bottom:1px dashed #999999">&nbsp;</td>
				<td align="center" style="border-bottom:1px dashed #999999">{$list[stockType]}</td>
				<td align="center" style="border-bottom:1px dashed #999999">&nbsp;</td>
				<td align="right" style="border-bottom:1px dashed #999999; padding-right:5px;"><font class="scj">$list[ourPrice]</font></td>
				<td align="center" style="border-bottom:1px dashed #999999">&nbsp;</td>
				<td align="right" style="border-bottom:1px dashed #999999;padding-right:5px;"><font class="hyj">$list[userPrice]</font></td>
				<td align="center" style="border-bottom:1px dashed #999999">&nbsp;</td>
				<td align="center" style="border-bottom:1px dashed #999999;padding-right:5px;"><input name="amount" type="text" id="amount_{$list[productId]}" class="in_text_cla1" style="text-align:center;width: 40px; height:15px; line-height:15px;" value="1" size="6" maxlength="4" /></td>
			</tr>
			<!--{/loop}-->
		  </tbody>
        </table>
		<!--{if $numCount==0}-->
		<h3><font color="#FF0000">还没有信息</font></h3>
		<!--{/if}-->
		<!--{if $multipage!=''}-->	
        <table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:5px;">
          <tr>
            <td height="30" align="right" bgcolor="#EAEAEA">
				<div class="pages">
					<div class="scott" style="text-align:center;">
						<!--{$multipage}-->	
					</div>					
				</div>
			
		 </td>
          </tr>
        </table>
		<!--{/if}-->
		<!--{if $numCount>0}-->
        <table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:5px;">
			  <tr>
				<td width="19%" height="40" valign="middle">
				<img id="ImmediatelyShopping" src="images/darkgreen/l_015.gif" style="cursor:pointer" />
				<td width="81%" valign="middle">
				
				</td>
			  </tr>
		</table>
		<!--{/if}-->
      </form>
    </div>
  </div>
  </div>
  <div class="top_3"></div>
{template footer}
</body>
</html>